home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
DEV
/
A-B
/
B_Editor.cpt
/
B Editor Doc
next >
Wrap
Text File
|
1985-10-10
|
4KB
|
64 lines
Here's another gift from me to the net. It is an editor for text files,
and specialized to edit program sources. I believe that you can easily
find out how it works by just trying out the menus, but there are a few
nice features and conscious deviations from the Macintosh User Interface
Standard that I would like to explain here. I am developing this editor
as part of a programming environment, and a large amount of the code runs
under Unix as well as on the Mac. This explains some of the features and
bugs, as well as its name (B editor).
Here's the feature list:
- Undo is radically different, and I believe much more powerful. You can
undo up to 40 commands, where clicking in the text is also considered
a command (so it's not only changes that can be undone). Scrolling and
font changes can't be undone, though. Because Undo is now no longer
its own inverse, there is a separate Redo command which undoes the Undo.
It, too, can be repeated but it can only be used immediately after an Undo
or after another Redo.
- Changed documents are automatically saved when closed or when the
program is exited in a regular fashion.
- You must supply the name for a new document at the moment you create
it, not when it is saved (as this is done automatically).
- When the editor is started it displays the "index" of all TEXT files
on all volumes (disks) it can find. Double-clicking on a document name in
such an index opens that document. The "Global Index" is a similar index
of volumes the program knows about. Inserting a disk also causes its
index to be displayed.
- The editor always works in auto-indent mode (a new line gets the same
indentation as the previous line).
- There is no word wrap, but windows may scroll horizontally when the focus
is on a long line.
- If you type very fast, the caret moves but the text is only displayed
when you take a rest. This is done in attempt to save screen updating time.
- Duplicating large amounts of text via the Clipboard is very efficient
(as long as no Desk Accessories are involved), especially copying
*entire* documents.
- The Clipboard can be edited (but you can't Cut or Paste!).
- You can search both for ordinary strings and for regular expressions
in Unix style.
- You can change the font used for a window (but the size is fixed at 12 pt.).
- Tabs move to the next tab stop; tab stops are set every 8 space widths.
- Double-clicking on a window's title bar zooms a window out (or in).
Some bugs you might beware of:
- It displays nothing if a volume happens to contain no TEXT files.
- If you happen to have files whose name ends in .HOW, .ZER, .MON, .DYA
or .TAR, it displays separate indices for these.
- It doesn't know that ABC and abc refer to the same file.
- It always refers to volumes by volume name, so you can't have two
disks with the same name.
- It uses quite a lot of space, therefore I put a SIZE -1 resource
in for the Switcher so that it uses 256 K. In 128 K it runs out of
memory too easy, and it cannot recover from that, yet.
- When a disk is write-protected, you may be flooded with I/O-error
alerts. You may try to Resource-edit the relevant Alert definition
to be silent (though this makes you will also miss other I/O errors).
Enjoy; you are free to give this software away to friends and I am not
even asking money for it. Mail me what you think of it; this is far from
a finished product and I would like to receive reactions of any sort.
Guido van Rossum, CWI, Amsterdam (guido@mcvax.UUCP)